package com.im.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.im.project.entity.Cluster;
import com.im.project.entity.vo.ClusterUserVo;
import com.im.project.entity.vo.ClusterVo;
import com.im.project.entity.vo.MyClusterVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 群组 数据层
 *
 * @author yunZhouJiaDi
 */
public interface ClusterMapper extends BaseMapper<Cluster> {

    List<MyClusterVo> queryGroupListByUserId(@Param("userId") String userId);

    ClusterVo queryClusterByClusterId(@Param("clusterId") String clusterId);

    List<ClusterUserVo> queryClusterUserList(String clusterId);

}
